<?php
namespace Fang\UserBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
*子用户主表
*@ORM\Entity
*@ORM\Table(name="subusers")
**/
class Subuser
{
  /**
  *@ORM\Column(type="integer")
  *@ORM\Id
  *@ORM\GeneratedValue(strategy="AUTO")
  **/
  private $sid;
  /**
  *父级用户uid,关联用户主表
  *@ORM\ManyToOne(targetEntity="User")
  *@ORM\JoinColumn(name="uid", referencedColumnName="id")
  *@ORM\Column(type="integer")
  **/
  private $uid;
  /**
  *@ORM\Column(type="string", length=255)
  **/
  private $name;
  /**
  *@ORM\Column(type="string", length=64)
  **/
  private $password;
  /**
  *是否开启
  *@ORM\Column(type="boolean")
  **/
  private $active;
  /**
  *@ORM\Column(type="integer")
  **/
  private $created;
  /**
  *@ORM\Column(type="integer")
  **/
  private $changed;

    /**
     * Get sid
     *
     * @return integer 
     */
    public function getSid()
    {
        return $this->sid;
    }

    /**
     * Set uid
     *
     * @param integer $uid
     * @return Subuser
     */
    public function setUid($uid)
    {
        $this->uid = $uid;

        return $this;
    }

    /**
     * Get uid
     *
     * @return integer 
     */
    public function getUid()
    {
        return $this->uid;
    }

    /**
     * Set name
     *
     * @param string $name
     * @return Subuser
     */
    public function setName($name)
    {
        $this->name = $name;

        return $this;
    }

    /**
     * Get name
     *
     * @return string 
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * Set password
     *
     * @param string $password
     * @return Subuser
     */
    public function setPassword($password)
    {
        $this->password = $password;

        return $this;
    }

    /**
     * Get password
     *
     * @return string 
     */
    public function getPassword()
    {
        return $this->password;
    }

    /**
     * Set created
     *
     * @param integer $created
     * @return Subuser
     */
    public function setCreated($created)
    {
        $this->created = $created;

        return $this;
    }

    /**
     * Get created
     *
     * @return integer 
     */
    public function getCreated()
    {
        return $this->created;
    }

    /**
     * Set changed
     *
     * @param integer $changed
     * @return Subuser
     */
    public function setChanged($changed)
    {
        $this->changed = $changed;

        return $this;
    }

    /**
     * Get changed
     *
     * @return integer 
     */
    public function getChanged()
    {
        return $this->changed;
    }

    /**
     * Set active
     *
     * @param boolean $active
     * @return Subuser
     */
    public function setActive($active)
    {
        $this->active = $active;

        return $this;
    }

    /**
     * Get active
     *
     * @return boolean 
     */
    public function getActive()
    {
        return $this->active;
    }
}
